﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dapper;

namespace Entity
{
    /// <summary>
    /// 类V_ExamRequestQuery。
    /// </summary>
    [Table("V_ExamRequestQueryForUpload")]
    public partial class V_ExamRequestQuery
    {
        public V_ExamRequestQuery()
        { }
        #region Model
        private string _patientid;
        private string _patientname;
        private string _patientnamepinyin;
        private int _patientgenderid;
        private string _patientgendername;
        private DateTime? _patientbirthdatetime;
        private int? _patientage;
        private string _address;
        private string _telephone;
        private DateTime _createtime;
        private string _feetype;
        private string _hisid;
        private string _patientidcard;
        private int? _patientsourceid;
        private string _patientsourcename;
        private int? _applydoctorid;
        private string _applydoctorname;
        private int? _departmentid;
        private string _departmentname;
        private string _hospitalid;
        private string _roomno;
        private string _bedno;
        private string _attachmentstudyinstanceuid;
        private DateTime _ordertime;
        private int _examrequestid;
        private int _orderid;
        private int _equipmentid;
        private DateTime _requesttime;
        private DateTime? _examtime;
        private int _status;
        private string _accessionno;
        private int? _cardid;
        private string _comments;
        private int _deviceid;
        private string _devicename;
        private string _deviceip;
        private int _deviceport;
        private string _aetitle;
        private int _modalityid;
        private int _devicetypeid;
        private bool _ischinese;
        private string _modalityname;
        private string _bodypartid;
        private string _exammethodid;
        private string _bodypartname;
        private string _exammethodname;
        private string _studyinstanceuid;
        private int? _examrequeststudymappingid;
        private int? _reportid;
        private DateTime? _reporttime;
        private string _reporttemplatename;
        private int? _reportstatus;
        private string _eyesee;
        private string _result;
        private int? _printcount;
        private bool _ispositive;
        private int? _reportdoctorid;
        private int? _reviewdoctorid;
        private string _reportdoctorname;
        private string _reviewdoctorname;
        private int? _patientageunitid;
        private string _ageunitname;
        private int? _instancecount;
        private string _sopinstance;
        private string _departmentnamepinyin;
        private string _bodypartnamepinyin;
        /// <summary>
        /// 
        /// </summary>
        public string PatientID
        {
            set { _patientid = value; }
            get { return _patientid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PatientName
        {
            set { _patientname = value; }
            get { return _patientname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PatientNamePinYin
        {
            set { _patientnamepinyin = value; }
            get { return _patientnamepinyin; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int PatientGenderID
        {
            set { _patientgenderid = value; }
            get { return _patientgenderid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PatientGenderName
        {
            set { _patientgendername = value; }
            get { return _patientgendername; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? PatientBirthDateTime
        {
            set { _patientbirthdatetime = value; }
            get { return _patientbirthdatetime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PatientAge
        {
            set { _patientage = value; }
            get { return _patientage; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string TelePhone
        {
            set { _telephone = value; }
            get { return _telephone; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string FeeType
        {
            set { _feetype = value; }
            get { return _feetype; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string HisID
        {
            set { _hisid = value; }
            get { return _hisid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PatientIDCard
        {
            set { _patientidcard = value; }
            get { return _patientidcard; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PatientSourceID
        {
            set { _patientsourceid = value; }
            get { return _patientsourceid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string PatientSourceName
        {
            set { _patientsourcename = value; }
            get { return _patientsourcename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ApplyDoctorID
        {
            set { _applydoctorid = value; }
            get { return _applydoctorid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ApplyDoctorName
        {
            set { _applydoctorname = value; }
            get { return _applydoctorname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? DepartmentID
        {
            set { _departmentid = value; }
            get { return _departmentid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string DepartmentName
        {
            set { _departmentname = value; }
            get { return _departmentname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string HospitalID
        {
            set { _hospitalid = value; }
            get { return _hospitalid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string RoomNo
        {
            set { _roomno = value; }
            get { return _roomno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BedNo
        {
            set { _bedno = value; }
            get { return _bedno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AttachmentStudyInstanceUID
        {
            set { _attachmentstudyinstanceuid = value; }
            get { return _attachmentstudyinstanceuid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime OrderTime
        {
            set { _ordertime = value; }
            get { return _ordertime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Key]
        public int ExamRequestID
        {
            set { _examrequestid = value; }
            get { return _examrequestid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int OrderID
        {
            set { _orderid = value; }
            get { return _orderid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int EquipmentID
        {
            set { _equipmentid = value; }
            get { return _equipmentid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime RequestTime
        {
            set { _requesttime = value; }
            get { return _requesttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? ExamTime
        {
            set { _examtime = value; }
            get { return _examtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AccessionNo
        {
            set { _accessionno = value; }
            get { return _accessionno; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? CardID
        {
            set { _cardid = value; }
            get { return _cardid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Comments
        {
            set { _comments = value; }
            get { return _comments; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int DeviceID
        {
            set { _deviceid = value; }
            get { return _deviceid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string DeviceName
        {
            set { _devicename = value; }
            get { return _devicename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string DeviceIP
        {
            set { _deviceip = value; }
            get { return _deviceip; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int DevicePort
        {
            set { _deviceport = value; }
            get { return _deviceport; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AETitle
        {
            set { _aetitle = value; }
            get { return _aetitle; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ModalityID
        {
            set { _modalityid = value; }
            get { return _modalityid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int DeviceTypeID
        {
            set { _devicetypeid = value; }
            get { return _devicetypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsChinese
        {
            set { _ischinese = value; }
            get { return _ischinese; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ModalityName
        {
            set { _modalityname = value; }
            get { return _modalityname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BodyPartID
        {
            set { _bodypartid = value; }
            get { return _bodypartid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExamMethodID
        {
            set { _exammethodid = value; }
            get { return _exammethodid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BodyPartName
        {
            set { _bodypartname = value; }
            get { return _bodypartname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ExamMethodName
        {
            set { _exammethodname = value; }
            get { return _exammethodname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string StudyInstanceUID
        {
            set { _studyinstanceuid = value; }
            get { return _studyinstanceuid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ExamRequestStudyMappingID
        {
            set { _examrequeststudymappingid = value; }
            get { return _examrequeststudymappingid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ReportID
        {
            set { _reportid = value; }
            get { return _reportid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? ReportTime
        {
            set { _reporttime = value; }
            get { return _reporttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ReportTemplateName
        {
            set { _reporttemplatename = value; }
            get { return _reporttemplatename; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ReportStatus
        {
            set { _reportstatus = value; }
            get { return _reportstatus; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string EyeSee
        {
            set { _eyesee = value; }
            get { return _eyesee; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Result
        {
            set { _result = value; }
            get { return _result; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PrintCount
        {
            set { _printcount = value; }
            get { return _printcount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsPositive
        {
            set { _ispositive = value; }
            get { return _ispositive; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ReportDoctorID
        {
            set { _reportdoctorid = value; }
            get { return _reportdoctorid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ReportDoctorName
        {
            set { _reportdoctorname = value; }
            get { return _reportdoctorname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? ReviewDoctorID
        {
            set { _reviewdoctorid = value; }
            get { return _reviewdoctorid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ReviewDoctorName
        {
            set { _reviewdoctorname = value; }
            get { return _reviewdoctorname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? PatientAgeUnitID
        {
            set { _patientageunitid = value; }
            get { return _patientageunitid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string AgeUnitName
        {
            set { _ageunitname = value; }
            get { return _ageunitname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? InstanceCount
        {
            set { _instancecount = value; }
            get { return _instancecount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SOPInstance
        {
            set { _sopinstance = value; }
            get { return _sopinstance; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string DepartmentNamePinYin
        {
            set { _departmentnamepinyin = value; }
            get { return _departmentnamepinyin; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string BodyPartNamePinYin
        {
            set { _bodypartnamepinyin = value; }
            get { return _bodypartnamepinyin; }
        }
        #endregion Model
    }
}